import { request } from '@/utils/request.js'
const baseApiUrl = import.meta.env.VITE_APP_BASE_URL;
export default {
    get_list(params) {
        return request({
            url: 'userswithdrawal/index',
            method: 'get',
            params
        })
    },
    delete_data(params = {}) {
        return request({
            url: 'userswithdrawal/delete',
            method: 'delete',
            params
        })
    },
    operate(data = {}) {
        return request({
            url: 'userswithdrawal/operate',
            method: 'post',
            data
        })
    },
    order_export(params = {}) {
        let tempParams = [];
        for (let key in params) {
            tempParams.push(`${key}=${params[key]}`);
        }
        params = tempParams.join('&');
        window.location.href = baseApiUrl + 'export/userswithdrawal?' + params;
    }
}